
/*
	"Hemi" JavaScript Framework
	Engine for Web Applications 3.1
	Composite file "hemi.comp.js" release: 3.1.9
	Copyright 2002 - 2010. All Rights Reserved.
	Author: Stephen W. Cote
	Email: sw.cote@gmail.com
	Project: http://www.whitefrost.com/Hemi/
	BSD License: http://www.whitefrost.com/Hemi.license.txt
*/
(function(){H.include("hemi.event");H.include("hemi.app.module");H.include("hemi.object");H.include("hemi.util.logger");H.namespace("worker",H,{service:null,serviceImpl:
function(){var t=this;H.IM(t,"base_object","worker_service","3.1.9");H.util.logger.addLogger(t,"Worker Service","Worker Service","630");H.registry.service.addObject(t);t.r=4;t.NewWorker=function(p,x){var w;if(typeof Worker!="undefined"){w=new Worker(Hemi.hemi_base+"Workers/worker.bootstrap.js");w.onmessage=this._prehandle_worker;w.postMessage('_hwi:'+p);}else{w=Hemi.newObject("proxy_worker","3.1.9",1,0,{object_create:
function(){this.getObjects().module=Hemi.app.module.service.NewModule(p,null,"Workers/",{DecorateModuleContent:
function(){return "var WorkerProxy=null;"+"function postMessage(v){var d=[{data:v}];if(WorkerProxy&&typeof WorkerProxy.onmessage=='function'){WorkerProxy.onmessage.apply(this,d);}};"+"this._hwimessage_=function(){if(typeof onmessage=='function'&&!onmessage.toString().match(/_hwdNo/)){onmessage.apply(this,arguments);}};"+"this.SetWorkerProxy=function(o){WorkerProxy=o;};";}});this.getObjects().module.SetWorkerProxy(this);},postMessage:
function(v){var d=[{data:v}];this.getObjects().module._hwimessage_.apply(this.getObjects().module,d);}});}return w;};t.DecorateModuleContent=function(){var s=(Hemi.in_worker?"":"function postMessage(v){Module._hwimessage_(v);};")+"this._hwimessage_=function(){if(typeof onmessage=='function'&&!onmessage.toString().match(/_hwdNo/)){onmessage.apply(this,arguments);}};";return s;};}},1);}());
/* End Hemi Framework 3.1 */
